home *** CD-ROM | disk | FTP | other *** search
/ Champak 49 / Volume 49 - JOGO DISK .iso / Games / feverfrenzy-demo.swf / scripts / DefineSprite_214 / frame_1 / DoAction.as
Text File  |  2007-09-28  |  662b  |  42 lines

  1. function setColor(cor)
  2. {
  3.    mColor = cor;
  4. }
  5. function setPoints(val)
  6. {
  7.    mPoints = val;
  8. }
  9. function setCount(val)
  10. {
  11.    mCount = val;
  12. }
  13. function setType(tipo)
  14. {
  15.    if(tipo == "fastservice")
  16.    {
  17.       this.gotoAndStop(1);
  18.    }
  19.    else if(tipo == "cash")
  20.    {
  21.       this.gotoAndStop(2);
  22.    }
  23.    else if(tipo == "bedsfull")
  24.    {
  25.       this.gotoAndStop(3);
  26.    }
  27.    else if(tipo == "colorbonus")
  28.    {
  29.       this.gotoAndStop(4);
  30.    }
  31.    else if(tipo == "cleanup")
  32.    {
  33.       this.gotoAndStop(5);
  34.    }
  35.    mPoints_mc.justifyLeft();
  36.    mPoints_mc.showSign("+");
  37.    mPoints_mc.showValue(mPoints);
  38. }
  39. stop();
  40. var mPoints;
  41. var mColor;
  42.